package com.ps.service;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ps.dto.*;
import com.ps.entity.Orders;
import com.ps.result.PageResult;
import com.ps.vo.OrderPaymentVO;
import com.ps.vo.OrderStatisticsVO;
import com.ps.vo.OrderSubmitVO;
import com.ps.vo.OrderVO;


import java.util.Map;

public interface OrderService extends IService<Orders> {

    OrderSubmitVO submitOrder(OrdersSubmitDTO orderSubmitDTO);


    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;


    void paySuccess(String outTradeNo);

    PageResult pageQuery4User(int page, int pageSize, Integer status);

    OrderVO details(Long id);

    void userCancelById(Long id) throws Exception;

    void repetition(Long id);

    PageResult conditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderStatisticsVO statistics();

    void confirm(OrdersConfirmDTO ordersConfirmDTO);

    void rejection(OrdersRejectionDTO ordersRejectionDTO) throws Exception;

    void cancel(OrdersCancelDTO ordersCancelDTO) throws Exception;

    void delivery(Long id);

    void complete(Long id);

    void reminder(Long id);


}
